import request from '@/utils/request'

// 查询再审件列表
export function listRevieweInfo(query) {
  return request({
    url: '/customer/revieweInfo/list',
    method: 'get',
    params: query
  })
}

// 查询再审件详细
export function getRevieweInfo(id) {
  return request({
    url: '/customer/revieweInfo/' + id,
    method: 'get'
  })
}

// 新增再审件
export function addRevieweInfo(data) {
  return request({
    url: '/customer/revieweInfo',
    method: 'post',
    data: data
  })
}

// 修改再审件
export function updateRevieweInfo(data) {
  return request({
    url: '/customer/revieweInfo',
    method: 'put',
    data: data
  })
}

// 删除再审件
export function delRevieweInfo(id) {
  return request({
    url: '/customer/revieweInfo/' + id,
    method: 'delete'
  })
}

// 客户列表
export function customerList(query) {
  return request({
    url: '/customer/revieweInfo/customerList',
    method: 'get',
    params: query
  })
}

export function withdrawSave(data) {
  return request({
    url: '/customer/revieweInfo/withdraw',
    method: 'post',
    data: data
  })
}
